www.gusucode.com > 线性时频分析工具箱 - ltfat-1.0.1源码程序 > 线性时频分析工具箱 - LTFAT\timing\plot_longer.m
% Copyright (C) 2005-2011 Peter L. Soendergaard. % This file is part of LTFAT version 1.0.1 % This program is free software: you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation, either version 3 of the License, or % (at your option) any later version. % % This program is distributed in the hope that it will be useful, % but WITHOUT ANY WARRANTY; without even the implied warranty of % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details. % % You should have received a copy of the GNU General Public License % along with this program. If not, see <http://www.gnu.org/licenses/>. lw=2; data_fb_real =load('longer_fb_real.log'); data_fac_real=load('longer_fac_real.log'); data_ola_real=load('longer_ola_real.log'); % Columns in data, fb : a M L W gl time % Columns in data, fac: a M L W time Ls=data_fac_real(:,3); t_fb_real =data_fb_real(:,6); t_fac_real=data_fac_real(:,5); t_ola_real=data_ola_real(:,7); if 0 % Color legend l1='b'; l2='b--'; l3='r'; l4='r--'; else % bw legend l1='b'; l2='b--'; l3='b-.'; l4='b:'; end; figure(1); a=data_fac_real(1,1); M=data_fac_real(1,2); L=data_fac_real(:,3); plot(Ls,t_fb_real,l1,... Ls,t_fac_real,l2,... Ls,t_ola_real,l3,'LineWidth',lw); legend('Portnoff, real','Fac, real','OLA, real',... 'Location','NorthWest'); xlabel('Signal length / samples'); ylabel('Running time / seconds'); set(gca,'fontsize',16); print -deps plot_longer_1.eps